<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="/WEB-INF/config/tld/statTag.tld" prefix="stat"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
String applicationPath = basePath + "/" + "application";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>	   
		<style type="text/css">
			body,td,th {
					font-size: 9pt;
			}
		</style>
<link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<link href="<%=applicationPath%>/css/zfcl.css" rel="stylesheet" type="text/css" />
<link href="<%=applicationPath%>/css/main_div.css" rel="stylesheet" type="text/css" />
	</head>

	<body>
		<form name="projectworksheetsForm" method="post" action="">
<input type="hidden" value="" name="str">
		

   <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
	    <tr>
	      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp;项目管理 &gt; 汇总情况 &gt; 开发任务书汇总&nbsp;</td>
	    </tr>
	 </table>
 <table cellspacing="3" cellpadding="0" width="98%" align="center"  border="0" class="kuang2 margtb5 hei12">
		<tr>
		   	<td width="10%" align="right">
      所属年度： </td>
	 <td width="15%"> <ssh:select firstShow="N" propertyName="year" dataSource="collection" selectList="${yearSelect}"  type="1" defaultName="${projectworksheetsForm.year}"/> 
	 </td>
	   
      <td align="right" width="8%">  <input class="buttonbg"  type="button" value="汇   总" onClick="gather()"></td>
	 <td align="right" width="12%"><input class="buttonbg"  type="button" value="导入到excel" onClick="excel()"></td>
	     <td align="right" width="12%">                         <input class="buttonbg"  type="button" value="导入到word" onClick="word()"></td>
	 <td width="20%"></td>
	 </tr>
	 </table>
	</td>
		</tr>
	</table>
   
 
	
    <div id="theObjTable"> 
	
	<stat:equipmentList type="${type}" conditionText="${conditionText}" listName="${listName}" sql="${sql}" tableName="${tableName}" orgName="${orgName}" orderState="${orderState}" userName="${userName}" condition="${condition}" orderClickUrl="${orderClickUrl}" orderColumn="${orderColumn}" />
	</div>

	</form>
	</body>
</html>
<script language="javascript">
function gather(){
     document.forms[0].action="gatherProjectWorkSheets.do?method=gatherProjectWorkSheets";
	 document.forms[0].submit();
}

function word(){
 	var a= document.getElementById('theObjTable').outerHTML
 	document.forms[0].str.value=a;
   	document.forms[0].action="<%=basePath%>/common/word.jsp";
  	document.forms[0].submit();
}

function excel(){
	var a= document.getElementById('theObjTable').outerHTML
	document.forms[0].str.value=a;
	document.forms[0].action="<%=basePath%>/common/excel.jsp";
	document.forms[0].submit();
}
</script>